<?php include_spip('functions/pdk_common'); 
    $currency_mdl = pdk_load_class('CurrencyModel', 'classes');
    if (_request('id_current_currency'))
         $currency_mdl->SetCurrentCurrencyId(_request('id_current_currency'));
    $current_currency = $currency_mdl->GetCurrentCurrency();    
    ?>
<B_currencies>
<select name="id_current_currency" id="id_current_currency">
<BOUCLE_currencies(ECATALOGUE_CURRENCIES)>
    <option <?php echo $current_currency['id_currency']=='#ID_CURRENCY'?'selected':''; ?> value="#ID_CURRENCY">#TITRE</option>
</BOUCLE_currencies>
</select>
</B_currencies>
<script type="text/javascript">
$(document).ready(function() {
	$('select#id_current_currency').change(function(){
	    var url = "<?php echo str_replace("amp;", "","[(#SELF|parametre_url{'id_current_currency',''})]"); ?>";
        window.location = url + "&id_current_currency=" + $(this).val();
	});
});
</script>